﻿Parse.initialize("hoUdUTN3q4Js5lc1YFLNwRMoFiZfKKMbKpOD7E2q", "R69EMYXOUNPkY2Vh78fnayUdflscKqQoOnsmKfUI");

var currentUser = Parse.User.current();
if (!currentUser) {
    window.location = "index.html";
}
document.getElementById("name").innerHTML = currentUser.getUsername();
function logout() {
    Parse.User.logOut();
    location.reload();
}